/**
 * 
 */
package com.worksmap.core.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * @author jack
 *
 */
public class LoginConstant {

	public static final int USER_LOGIN_SUCCESS = 0;
	public static final int LOGIN_FAILED = 1001;
	public static final int LOGIN_FAILED_USER_NOT_EXIST = 1002;    //用户不存在
	public static final int LOGIN_FAILED_PASS_ERROR = 1003;    //密码错误
	
	public static final Map<Integer, String> ERROR_MAP = new HashMap<Integer, String>();
	static{
		ERROR_MAP.put(LOGIN_FAILED, "登录失败");
		ERROR_MAP.put(LOGIN_FAILED_USER_NOT_EXIST, "用户不存在");
		ERROR_MAP.put(LOGIN_FAILED_PASS_ERROR, "密码错误");
	}
	
	
}
